package com.sangeng.domain.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 分类表(Category)实体类
 *
 * @author mg
 * @since 2022-04-29 16:56:44
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("sg_category")
@JsonIgnoreProperties(value = "hibernateLazyInitializer")
public class Category implements Serializable{
    private static final long serialVersionUID= 962651403593815970L;
        
    private Long id;
    /** 分类名*/
    private String name;
    /** 父分类id，如果没有父分类为-1*/
    private Long pid;
    /** 描述*/
    private String description;
    /** 状态0:正常,1禁用*/
    private String status;
    
    private Long createBy;
    
    private Date createTime;
    
    private Long updateBy;
    
    private Date updateTime;
    /** 删除标志（0代表未删除，1代表已删除）*/
    private Integer delFlag;
}

